﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BIS.Portal.Modules.OnlineShop.Adm.WebControls
{
    public partial class MultiTextBoxControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string GetText(int languageId)
        {
            if (languageId == 1)
                return txtValue1.Text;
            if (languageId == 2)
                return txtValue2.Text;
            return "";
        }

        public void SetText(int languageId, string value)
        {
            if (languageId == 1)
                txtValue1.Text = value;
            else if (languageId == 2)
            {
                txtValue2.Text = value;
            }

        }

        public void ClearAllText()
        {
            txtValue1.Text = "";
            txtValue2.Text = "";
        }
    }
}